package net.lijingye.education.request;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class PostSourceRateRequest {
    @NotNull
    @Range(min = 1, max = 5)
    private Integer score;

    public PostSourceRateRequest() {
    }

    public PostSourceRateRequest(Integer score) {
        this.score = score;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "PostSourceRateRequest{" +
                "score=" + score +
                '}';
    }
}
